/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2024/6/12
 * Time: 11:08
 */

#include "Player.h"

#include <utility>

#include "Card.h"
namespace Upgrade {
    Player::Player(QString _name, GroupId _g)
        : name_(std::move(_name))
        , group_(_g)
    {
    }

    Player::GroupId Player::Group() const
    {
        return group_;
    }

    void Player::ReceiveCard(const CardSPtr &_card)
    {
        handCards_.push_back(_card);
    }

    // CardSptrVec Player::DealCard()
    // {
    //     return {};
    // }
    //
    // CardSptrVec Player::HandCard()
    // {
    //     return handCards_;
    // }
    //
    // int Player::HandCardNum() const
    // {
    //     return handCards_.size();
    // }

    void Player::Print()
    {
        qDebug() << "Player:" << name_;
        // for(auto card : handCards_)
        //     card->Print();
    }

    QString Player::Name() const
    {
        return name_;
    }

    // bool Player::HaveJoker(CardSuit _suit)
    // {
    //     return false;
    // }
    //
    // void Player::SetJoker(CardSuit _suit)
    // {
    //     // have_joker_.insert()
    // }
}// namespace Upgrade